package com.hospital.controller;

import com.hospital.entity.SeeDoctor;
import com.hospital.service.intf.SeeDocService;
import com.hospital.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/seedoc/")
public class SeeDocController {

    @Autowired
    private SeeDocService service;
    //新增一条诊断记录
    @PostMapping("addseedoc.do")
    public R addSee(SeeDoctor seeDoctor){
        return service.addSeeDoc(seeDoctor);
    }

}
